import request from '@/utils/request'

// 查询结算单列表
export function listSettleBill(query) {
  return request({
    url: '/settle/settleBill/list',
    method: 'post',
    data: query
  })
}

// 查询结算单详细
export function getSettleBill(id) {
  return request({
    url: '/settle/settleBill/' + id,
    method: 'get'
  })
}

// 新增结算单
export function addSettleBill(data) {
  return request({
    url: '/settle/settleBill/add',
    method: 'post',
    data: data
  })
}

// 修改结算单
export function updateSettleBill(data) {
  return request({
    url: '/settle/settleBill/update',
    method: 'post',
    data: data
  })
}

// 删除结算单
export function delSettleBill(id) {
  return request({
    url: '/settle/settleBill/delete/' + id,
    method: 'post'
  })
}

export function audit(id){
  return request({
    url: '/settle/settleBill/audit/' + id,
    method: 'post'
  })
}

export function auditCancel(id){
  return request({
    url: '/settle/settleBill/auditCancel/' + id,
    method: 'post'
  })
}
